package cn.zwx.infra.svc.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * @author zhangwenxue
 */
@Data
@ApiModel("短信渠道出参")
public class SmsChannelVO {

    @NotNull(message = "编号不能为空")
    private Long id;

    @ApiModelProperty( value = "短信签名", example = "XueXue")
    private String signature;

    @ApiModelProperty( value = "渠道编码，参见 SmsChannelEnum 枚举类", example = "YUN_PIAN")
    private String code;

    @ApiModelProperty( value = "启用状态", example = "1")
    private Integer status;

    @ApiModelProperty( value = "备注", example = "好吃！")
    private String remark;

    @ApiModelProperty( value = "短信 API 的账号",example = "zwx")
    private String apiKey;

    @ApiModelProperty(value = "短信 API 的密钥", example = "yuanma")
    private String apiSecret;

    @ApiModelProperty( value = "短信发送回调 URL", example = "http://www.iocoder.cn")
    private String callbackUrl;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
}
